import { ref } from 'vue'
import type { XtxLikeInstance } from '@/components/components'
export const useLikeList = () => {
  // 猜你喜欢REF
  const guessRef = ref<XtxLikeInstance>()

  // 滑动触底
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }

  // 返回 ref 和 事件处理函数
  return {
    guessRef,
    onScrolltolower,
  }
}
